<script>
    $(function () {
        $('#apply-form').submit(function () {
            var _this = $(this);
            $.post(_this.attr('action'), _this.serialize(), function (r) {
                alert(r.info);
                if (r.status) {
                    _this.find('input').val('');
                }
            }, 'json');
            return false;
        })
    })
</script>

<div class="recruit">
    <div class="recruit1">
        <volist name="job_list" id="job">
            <div class="recruit2">
                <p class="recruit3">{$job.title}</p>
                <p class="recruit4">岗位职责：</p>
                <div class="recruit5">
                    {$job.duty}
                </div>
            </div>
        </volist>
    </div>
    <a class="recruitTel" tel="{$tel}">
        <img src="/Public/Wap/hpf/images/iphone.png"/>
        <label>咨询热线：{$tel}</label>
    </a>
    <form method="post" action="{:U('apply')}" id="apply-form">
        <div class="recruitZl">
            <label class="recruitZl1">在线申请</label>
            <label class="recruitZl2">
                <span>姓        名：</span><input type="text" name="name"/>
            </label>
            <label class="recruitZl2">
                <span>性　　别：</span> <label for="男"><input type="radio" name="sex" value="1">男</label><label for="女"><input type="radio" name="sex" value="2">女</label>
            </label>
            <label class="recruitZl2">
                <span>电        话：</span><input type="text" name="phone"/>
            </label>
            <label class="recruitZl2">
                <span>理想职位：</span><input type="text" name="apply_job"/>
            </label>
            <a class="recruitZl3" href="javascript:;" onclick="$('#apply-form').submit()">提交资料</a>
        </div>
    </form>
</div>

